import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//rem
// import rem from './assets/rem.js'
// window.addEventListener('resize',function(){
//   rem()
// })

//axios
import axios from 'axios';
Vue.prototype.$axios = axios; //在所有组件中都可以用this.$axios访问到

// 全局引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//图片懒加载
import { Lazyload } from 'vant';
Vue.use(Lazyload);

//ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
